package stud.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import stud.aistar.entity.DoctorType;
import stud.aistar.mapper.DoctorTypeMapper;
import stud.aistar.service.IDoctorTypeService;

import java.util.List;

/**
 * Created by Jcdz on 2019/9/28.
 */
@Service
@Transactional
public class DoctorTypeServiceImpl implements IDoctorTypeService {

    @Autowired
    private DoctorTypeMapper doctorTypeMapper;

    @Override
    public List<DoctorType> findAll() {
        return doctorTypeMapper.findAll() ;
    }

    @Override
    public DoctorType findBydocId(Integer doc_id) {
        return doctorTypeMapper.findBydocId(doc_id);
    }
}
